// 验证手机号码是否注册过
import axios from 'axios'
export function verifyPhone(phone) {
  return axios({
    url: '/regist/verify_phone',
    method: 'post',
    data: {
      phone,
    },
  })
}
// verify_code 验证验证码是否正确
export function verifyCode(phone,code) {
  return axios({
    url: "/regist/verify_code",
    method: "post",
    data: {
      phone,
      code,
    },
  });
}

export function regist(phone,password) {
   return axios({
     url: "/regist/user",
     method: "post",
     data: {
       phone,
       password,
     },
   });
  
}
